package com.igeek.shop.entity;

//购物车商品信息
public class OrderItem {
		private String name;    
		private String itemid;
		private int count;		//购买的数量
		private double subtotal;   //小计
		private Product product;  //该项中购买的商品对象
		private Order Order;
		public String getItemid() {
			return itemid;
		}
		public void setItemid(String itemid) {
			this.itemid = itemid;
		}
		public int getCount() {
			return count;
		}
		public void setCount(int count) {
			this.count = count;
		}
		public double getSubtotal() {
			return subtotal;
		}
		public void setSubtotal(double subtotal) {
			this.subtotal = subtotal;
		}
		public Product getProduct() {
			return product;
		}
		public void setProduct(Product product) {
			this.product = product;
		}
		public Order getOrder() {
			return Order;
		}
		public void setOrder(Order order) {
			Order = order;
		}
		
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		@Override
		public String toString() {
			return "OrderItem [itemid=" + itemid + ", count=" + count + ", subtotal=" + subtotal + ", product="
					+ product + ", Order=" + Order + "]";
		}
		
		
}
